﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterchitiet.master" AutoEventWireup="true" CodeFile="giohang.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">

    .style5
    {
        width: 185px;
    }
         
        .style5
        {
            height: 18px;
            width: 39px;
        }
         .style5
        {
            width: 100%;
        }
        .style7
        {
            height: 8px;
            text-align: center;
        }
         .style6
        {
            height: 200px;
            width: 136px;
        }
        .style6
        {
            color: #996600;
            font-weight: bold;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <table class="style5">
        <tr>
            <td class="style7">
                <span class="style6">GI&#7886; H&Agrave;NG C&#7910;A B&#7840;N</span><asp:Label ID="lbTenDN" 
                    runat="server" style="color: #FF33CC; font-weight: 700"></asp:Label>
            </td>
        </tr>
        </table>
    <asp:Panel ID="PnlGiohanghien" runat="server">
        <table cellpadding="0" cellspacing="0" style="width: 100%">
            <tr>
                <td align="center" style="height: 23px">
                    <span style="font-weight: bold; font-size: large; color: #9900CC; text-align: center; ">
                    Gi&#7887; h&agrave;ng c&#7911;a b&#7841;n</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Label ID="lbTenDN0" runat="server" 
                        style="font-size: medium; font-family: Arial, Helvetica, sans-serif; font-style: italic; color: #0066FF"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="gdvgiohang" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" DataKeyNames="masp" ForeColor="#666699" GridLines="None" 
                        onrowcommand="GridView1_RowCommand" Width="100%">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:BoundField DataField="masp" HeaderText="M&atilde; s&#7843;n ph&#7849;m" InsertVisible="False" 
                                ReadOnly="True" SortExpression="masp" />
                            <asp:BoundField DataField="tensp" HeaderText="T&ecirc;n s&#7843;n ph&#7849;m" 
                                SortExpression="tensp" />
                            <asp:BoundField DataField="dongia" DataFormatString="{0:#,##0}" 
                                HeaderText="&#272;&#417;n gi&aacute;" SortExpression="dongia" />
                            <asp:TemplateField HeaderText="S&#7889; l&#432;&#7907;ng">
                                <ItemTemplate>
                                    <asp:TextBox ID="txtSoluong" runat="server" Text='<%# Bind("Soluong") %>' 
                                        Width="50%"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="thanhtien" DataFormatString="{0:#,##0}" 
                                HeaderText="Th&agrave;nh ti&#7873;n" ReadOnly="True" 
                                SortExpression="thanhtien" />
                            <asp:ButtonField ButtonType="Image" CommandName="Nutxoa" HeaderText="X&oacute;a" 
                                ImageUrl="~/images/Delete.jpg" Text="Button" />
                        </Columns>
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td style=" font-size: medium; height: 15px; ">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; T&#7893;ng c&#7897;ng 
                    :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Label ID="lbTongThanhTien" runat="server" 
                        style="font-weight: 700; color: #FF0000"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="text-align: center">
                    &nbsp;<asp:Button ID="btTieptucmua" runat="server" onclick="btTieptucmua_Click" 
                        Text="Ti&#7871;p t&#7909;c mua" Width="88px" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btXoagiohang" runat="server" 
                        onclick="btXoagiohang_Click" Text="X&oacute;a gi&#7887; h&agrave;ng" Width="91px" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btCapnhat" runat="server" Height="26px" 
                        onclick="btCapnhat_Click" Text="C&#7853;p nh&#7853;t" Width="67px" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btDatHang" runat="server" onclick="btDatHang_Click" 
                        style="text-align: right" Text="Thanh To&aacute;n" Width="77px" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="PnlGiohangan" runat="server" Visible="False">
        <table cellpadding="0" cellspacing="0" style="width: 100%">
            <tr>
                <td align="center" style="height: 23px">
                    <span style="font-weight: bold; font-size: large; color: #9900CC; text-align: center; ">
                    Gi&#7887; h&agrave;ng c&#7911;a b&#7841;n</span>
                    <asp:Label ID="lbTenDHan" runat="server" 
                        style="font-size: medium; font-family: Arial, Helvetica, sans-serif; font-style: italic; color: #0066FF"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center" 
                    style="height: 23px; color: #FF0066; font-family: 'Times New Roman', Times, serif; font-size: medium;">
                    &gt;&gt;Hi&#7879;n t&#7841;i v&#7851;n ch&#432;a c&oacute; s&#7843;n ph&#7849;m n&agrave;o trong gi&#7887; h&agrave;ng c&#7911;a b&#7841;n&lt;&lt;<br />
                    <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#3333FF" 
                        NavigateUrl="~/trangchu.aspx">Click here</asp:HyperLink>
                    &nbsp;&#273;&#7875; b&#7855;t &#273;&#7847;u l&#7921;a ch&#7885;n s&#7843;n ph&#7849;m</td>
            </tr>
        </table>

    </asp:Panel>
</asp:Content>

